package csvreader;

import csvreader.Element;
import csvreader.Line;
import junit.framework.TestCase;

public class testLine extends TestCase {
	
	public testLine(){
	
		Element element = new Element();
		element.addData("1");
		element.addData("\"1, Blossom Street Restaurant & Bar\"");
		element.addData("2007-10-17");
		element.addData("\"E1 6BX\"");
		element.addData("7.35");
		
		Line line = new Line();
		
		
		line.addElement(element);
		Element obtained = line.getElement(0);
	
		assertTrue(obtained.equals(element));

	}
}
